function getCurrentTime() {
    const now = new Date();
    return now.getFullYear() + '-' +
        (now.getMonth() + 1) < 10 ? '0' + (now.getMonth() + 1) : (now.getMonth() + 1)
            + '-' +
            (now.getDate() + 1) < 10 ? '0' + (now.getDate() + 1) : (now.getDate() + 1)
                + ' ' +
                (now.getHours() + 1) < 10 ? '0' + (now.getHours() + 1) : (now.getHours() + 1)
                    + ':' +
                    (now.getMinutes() + 1) < 10 ? '0' + (now.getMinutes() + 1) : (now.getMinutes() + 1)
                        + ':' +
                        (now.getSeconds() + 1) < 10 ? '0' + (now.getSeconds() + 1) : (now.getSeconds() + 1)

}

export {
    getCurrentTime
}
